home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
gui
/
gtldv374.lha
/
GadUtil
/
Docs
/
AutoDocs
/
14.GU_TextWidth
< prev
next >
Wrap
Text File
|
1996-05-14
|
597b
|
23 lines
gadutil.library/GU_TextWidth gadutil.library/GU_TextWidth
NAME
GU_TextWidth -- Calculate the pixel length of a text string.
SYNOPSIS
textwidth = GU_TextWidth(string, textattr)
D0 A0 A1
ULONG GU_TextWidth(STRPTR, struct TextAttr *);
FUNCTION
Calculate the length of the text, using the specified font. This
function will open the required font, if it isn't opened before.
INPUTS
string - NULL terminated text to calculate width of.
textattr - a filled in TextAttr structure.
RESULT
textwidth - pixel length of the text